﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="WebApplication1._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:GridView ID="GridView1" runat="server" AllowSorting="True" 
            AutoGenerateColumns="False" DataSourceID="SqlDataSource1">
            <Columns>
                <asp:BoundField DataField="tresc" HeaderText="tresc" SortExpression="tresc" />
                <asp:BoundField DataField="kategoria" HeaderText="kategoria" 
                    SortExpression="kategoria" />
                <asp:BoundField DataField="uzytkownik" HeaderText="uzytkownik" 
                    SortExpression="uzytkownik" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
            SelectCommand="SELECT [tresc], [kategoria], [uzytkownik] FROM [Pytanie]">
        </asp:SqlDataSource>
    
    </div>
    </form>
</body>
</html>
